package org.smartboot.flow.example;


import org.smartboot.flow.core.exception.FlowException;
import org.smartboot.flow.core.executable.AbstractExecutable;
import org.springframework.stereotype.Service;

/**
 * @author qinluo
 * @date 2022-11-11 21:44:21
 * @since 1.0.0
 */
@Service
public class AsyncStep4 extends AbstractExecutable<Integer, String> {

    @Override
    public void execute(Integer integer, String s) {
        try {
            Thread.sleep(500);
        } catch (Exception e) {

        }
        throw new FlowException("async4 failed.");
    }
}
